<?php
session_start(); 
if (empty($_SESSION['UserName']))
{
    echo "NO login in the web.";
    exit;
}
?>